package com.drinks.yiniang.entity.tab;

import android.widget.ImageView;
import android.widget.TextView;

/**
 * 自定义tabbar entity
 * Created by han on 2018/10/15 0015.
 */

public class TabbarEntity {
    /**
     * text resource id
     */
    private int textResId;
    /**
     * image src resource id
     */
    private int imageSrcResId;
    /**
     * image select src resource id
     */
    private int imageSelectSrcResId;
    private ImageView iv;
    private TextView tv;

    private boolean hasRedDot;

    public TabbarEntity(int textResId, int imageSrcResId, int imageSelectSrcResId) {
        this.textResId = textResId;
        this.imageSrcResId = imageSrcResId;
        this.imageSelectSrcResId = imageSelectSrcResId;
    }

    public TabbarEntity(int textResId, int imageSrcResId, int imageSelectSrcResId, boolean hasRedDot) {
        this.textResId = textResId;
        this.imageSrcResId = imageSrcResId;
        this.imageSelectSrcResId = imageSelectSrcResId;
        this.hasRedDot = hasRedDot;
    }

    public int getTextResId() {
        return textResId;
    }

    public void setTextResId(int textResId) {
        this.textResId = textResId;
    }

    public int getImageSrcResId() {
        return imageSrcResId;
    }

    public void setImageSrcResId(int imageSrcResId) {
        this.imageSrcResId = imageSrcResId;
    }

    public int getImageSelectSrcResId() {
        return imageSelectSrcResId;
    }

    public void setImageSelectSrcResId(int imageSelectSrcResId) {
        this.imageSelectSrcResId = imageSelectSrcResId;
    }

    public ImageView getIv() {
        return iv;
    }

    public void setIv(ImageView iv) {
        this.iv = iv;
    }

    public TextView getTv() {
        return tv;
    }

    public void setTv(TextView tv) {
        this.tv = tv;
    }

    public boolean isHasRedDot() {
        return hasRedDot;
    }

    public void setHasRedDot(boolean hasRedDot) {
        this.hasRedDot = hasRedDot;
    }
}
